package com.cjw.mapper.database;

import com.cjw.pojo.entity.database.Resource;
import com.cjw.pojo.query.database.ResourceQuery;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface ResourceMapper extends Mapper<Resource> {
    List<Resource> queryByUserId(Long userId);

    List<Resource> queryByRoleId(Long roleId);

    List<Resource> queryByPage(ResourceQuery query);

    Integer queryCount(ResourceQuery query);
}
